package com.unknowpupil.design.decorator;

/**
 * @Description: <p>
 *  ConcreteDecorator 具体装饰角色
 * </p>
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/4/28 10:10
 * @Classname: FlySuperCar
 * @Version: 1.0
 */
public class FlySuperCar extends SuperCar{
    public FlySuperCar(ICar car) {
        super(car);
    }

    @Override
    public void move() {
        super.move();
        fly();
    }

    /**
     * 新功能
     */
    public void fly(){
        System.out.println("天上飞");
    }
}
